<?php  
/***************************************************
* Module AdSense for OpenCart 1.4.x                *
* 												   *
* Version:	0.1b                                   *
* Author: 	myOpenCart.com                         *
* Email: 	mail@myopencart.com                    *
* Web:      http://myopencart.com                  *
* SVN:      $Rev: 168 $							   *
***************************************************/

class ControllerModuleAdsense extends Controller {
	protected function index() {
		$this->language->load('module/adsense');
		$this->data['heading_title'] = $this->language->get('heading_title');
		
		$this->data['adsense_script'] = html_entity_decode($this->config->get('adsense_script'), ENT_QUOTES);
		
		$this->id       = 'adsense';
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/adsense.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/adsense.tpl';
		} else {
			$this->template = 'default/template/module/cart.tpl';
		}
		
		$this->render();
	}
}
?>